<?php
$server = "localhost";
$username = "root";
$password = "";
$dbname = "account_db";
$mysqli = new mysqli ($server, $username, $password,$dbname);
$result = mysqli_query($mysqli,"select * from account");
while ($r = mysqli_row($result)){
	var_dump ($r);
	echo"<br/>";
}
mysqli_free_result($result);
$result->close();
$result =  mysqli_query($mysqli,"select * from account");
while (list ($id,$name,$pwd,$email) = musqli_fetch_row($result)){
	echo $id." ".$pwd. " " .$email;
	echo"<br/>";
}
mysqli_free_result($result);
mysqli_close($result);
?>